package com.wxzz.elearing.user.entity;

import java.math.BigDecimal;
import java.time.LocalDateTime;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableField;
import com.wxzz.elearning.common.bean.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 企业
 * </p>
 *
 * @author
 * @since 2021-04-01
 */
@Data
@ApiModel(value = "Enterprise对象", description = "企业")
public class Enterprise extends BaseEntity {

    @Excel(name = "企业名称", orderNum = "0", width = 15)
    @ApiModelProperty(value = "企业名称")
    private String enterpriseName;

    @Excel(name = "统一社会信用代码", orderNum = "1", width = 20)
    @ApiModelProperty(value = "统一社会信用代码")
    private String creditCode;

    @ApiModelProperty(value = "印业执照")
    private String businessLicense;

    @ApiModelProperty(value = "行业类目id(行业类目接口在测评模块)")
    private Long businessCategoryId;

    @Excel(name = "法人手机号", orderNum = "2", width = 15)
    @ApiModelProperty(value = "法人手机号")
    private String legalPersonPhone;

    @Excel(name = "法人姓名", orderNum = "3", width = 15)
    @ApiModelProperty(value = "法人姓名")
    private String legalPersonName;

    @ApiModelProperty(value = "企业详细介绍富文本")
    private String enterpriseDetail;

    @ApiModelProperty(value = "入驻通过时间")
    private LocalDateTime passDate;

    @Excel(name = "所属地区", orderNum = "4", width = 30)
    @ApiModelProperty(value = "所属地区 省市区用,分隔")
    private String enterprisePlace;

    @Excel(name = "企业详细地址", orderNum = "5", width = 30)
    @ApiModelProperty(value = "企业详细地址")
    private String enterprisePlaceDetail;

    @Excel(name = "星级", orderNum = "6", width = 15)
    @ApiModelProperty(value = "星级")
    private Integer enterpriseLevel;

    @ApiModelProperty(value = "企业logo")
    private String enterpriseLogo;

    @ApiModelProperty(value = "企业文化富文本")
    private String cultureDetail;

    @ApiModelProperty(value = "企业文化banner或视频")
    private String cultureUrl;

    @ApiModelProperty(value = "banner图类型 0-视频 1-图片")
    private Integer cultureType;

    @ApiModelProperty(value = "课程分成比例")
    private BigDecimal proportion = new BigDecimal("0.00");

    @ApiModelProperty(value = "企业客服电话")
    private String enterpriseServicePhone;

    @ApiModelProperty(value = "院长id")
    private Long wxUserId;

    @ApiModelProperty(value = "是否禁用 0-否 1-是")
    private Integer isBan;

    @TableField(exist = false)
    @ApiModelProperty(value = "院长名字")
    private String nickname;

    @TableField(exist = false)
    @ApiModelProperty(value = "部门名称")
    private String organizationName;

    @Excel(name = "行业类目", orderNum = "7", width = 15)
    @TableField(exist = false)
    @ApiModelProperty(value = "行业类目")
    private String categoryName;

    @TableField(exist = false)
    @ApiModelProperty(value = "用户名")
    private String username;

    @TableField(exist = false)
    @ApiModelProperty(value = "企业绑定手机号")
    private String phone;

    @TableField(exist = false)
    @ApiModelProperty(value = "密码")
    private String password;

    @TableField(exist = false)
    @ApiModelProperty(value = "禁用是否发送短信 0-否 1-是")
    private Integer isSms;

    @TableField(exist = false)
    @ApiModelProperty(value = "禁用是否发送公众号 0-否 1-是")
    private Integer isPublic;

    @TableField(exist = false)
    @ApiModelProperty(value = "禁用原因")
    private String banReason;
}
